package com.example.demo.utils;


import org.springframework.beans.factory.annotation.Value;

public class Utils {

    @Value("${token_prefix}")
    private static String token_prefix;

    @Value("${token_suffix}")
    private static String token_suffix;

    public static String rename(){
        int n = (int)(Math.random()*100);
//        return  MD5.encoded(String.valueOf(Token.getToken_Prefix()+Token.getToken_Suffix()+String.valueOf(n)+System.currentTimeMillis()));
        return  MD5.encoded(String.valueOf(token_prefix+token_suffix+String.valueOf(n)+System.currentTimeMillis()));
    }

}
